Repository navigation
Android 3.15t: mimalloc libc branch on Android (x86_64 seccomp SIGSYS) - #437
Merged
Merged
Conversation
…not killed by seccomp CPython's vendored mimalloc calls syscall(SYS_access) and syscall(SYS_open) directly whenever those numbers exist. Android's x86_64 app seccomp filter allows only faccessat/openat, so the free-threaded x86_64 build died with SIGSYS at Py_Initialize (toolchain#145 android-e2e, run 43691526214, traced to _mi_prim_numa_node_count). The build script now adds && !defined(__ANDROID__) to that guard and fails loudly if the guard line changes. arm64 has no __NR_access and already took the libc branch. Closes #436
The cpython-3.15.0t-mobile x86_64 asset was rebuilt with the mimalloc seccomp fix (build-ft-mobile run 43697003385; the new libpython3.15t.so has no raw access/open syscall sites) and replaced on the release with the owner's approval (2026-11-15). The old asset is kept under .cache. Refs #436.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #436
The free-threaded x86_64 Android build died with SIGSYS at Py_Initialize (toolchain#145 run 43691526214): mimalloc's raw syscall(SYS_access) in _mi_prim_numa_node_count is blocked by the app seccomp filter. build-android.sh now patches mimalloc's raw-syscall guard with && !defined(ANDROID) (fails loudly if the guard line changes). arm64 already used the libc branch.
Verification needs build-ft-mobile.yml for x86_64-linux-android (rebuilds and re-uploads the asset), then toolchain #145 android-e2e.